﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SpecialCase.aspx.cs" Inherits="Workflow.SpecialCase" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
    
</head>
<body>
    <form id="form1" runat="server">
     <div>
       <table class="table table-bordered table-hover definewidth m10">
            <tr>
                <td class="tableleft">专案号</td>
                <td><asp:TextBox ID="txtZNum" runat="server"></asp:TextBox></td>
            </tr>
            <tr id="trMold" runat="server">
                <td class="tableleft">Sap模具号</td>
                <td><asp:TextBox ID="txtMold" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tableleft"></td>
                <td>
                    <asp:Button ID="BtnSubmit" CssClass="btn btn-primary" runat="server" Text="查询" OnClientClick="return Validate()" OnClick="BtnSubmit_Click"/>
                </td>
            </tr>
        </table>
    </div>
    </form>
    <script type="text/javascript">
        function Validate() {
            if ($("#txtZNum").val().trim().length == 0 && $("#txtMold").val().trim().length == 0) {
                alert('专案号和工作流名称不能同时为空');
                return false;
            }
        }
    </script>
</body>
</html>
